package com.shuai.shuaisecondhand_springboot.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;



@Data
public class Admin {
    private Integer id;
    private String username;

    @JsonIgnore           //此注解可忽略后端传去给前端的值
    private String password;
    private String phone;
    private String avatar;
    // 创建时间
    private String time;

    //以下非数据库字段,也可新建一个DTO类，copy到此实体类
    private String token;

    @JsonIgnore
    private String newpassword;


}
